package com.rahms.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 用药提醒记录实体类，对应medication_reminder_log表
 */
@Data
@TableName("medication_reminder_log")
public class MedicationReminderLog {
    
    @TableId(type = IdType.AUTO)
    private Long logId;
    
    private Long planId; // 关联计划ID
    
    private Long elderlyId; // 关联老人ID
    
    private LocalDateTime scheduledTime; // 计划服药时间
    
    private LocalDateTime remindTime; // 实际提醒时间
    
    private Integer status; // 状态 (0:待提醒, 1:已提醒, 2:已确认, 3:已漏服)
    
    private LocalDateTime confirmTime; // 确认时间
    
    private Long confirmedBy; // 确认人用户ID
}